﻿@{
    ViewBag.Title = "Thú Cưng";
}


@using ProjectThuCung.Models
@using MvcPaging
<div class ="ui-corner-tbl-all" style="margin-left:5px;">
    <ul class ="top_tabs top_tt-pr">
        <li class ="headtt">@Html.ActionLink("Loại Thú Cưng", "ThuCung", "SanPham")</li>
        <li class="LASTtt">@Html.ActionLink("Xem thêm","ThuCung","SanPham")</li>
    </ul>
</div>
<div class="wrapper" style="margin-bottom:10px">
    @if(ViewBag.thucung !=null)
    {
        foreach (var item in (List<SanPham>)ViewBag.thucung)
        {
            <div class="products product_item" style="margin-left:10px;height:330px;">
                <div class="inner-product-home">
                    <a href="/SanPham/ThongTinSanPham?sanpham=@item.TenSanPham&id=@item.SanPhamID">
                        <img width="171" height="214" class="lazy img-product" src="@item.HinhAnh" alt="" data-original="@item.HinhAnh" style="display: block; "></a> 
                </div> 
                <div class="infor-text-pro"> 
            <b style="color:#e47911;font-size: 12px;">@item.XuatXu.TenXuatXu</b><br>                   
                        @{
                            if(item.TenSanPham.Count() <=30)
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham</a>
                            }
                            else
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham.Substring(0,30)...</a>
                            }
                        }		 
		            <br>		          					          	
                    <strong>@item.Gia<span>.000đ</span></strong>
		        </div>
            </div>
        }
    }
</div>



<div class ="ui-corner-tbl-all" style="margin-left:5px;">
    <ul class ="top_tabs top_tt-pr">
        <li class ="headtt">@Html.ActionLink("Thức ăn cho thú cưng","ThucAn","SanPham")</li>
        <li class="LASTtt">@Html.ActionLink("Xem thêm","ThuCung","SanPham")</li>
    </ul>
</div>
<div class="wrapper" style="margin-bottom:10px">
    @if(ViewBag.thucan !=null)
    {
        foreach (var item in (List<SanPham>)ViewBag.thucan)
        {
            <div class="products product_item" style="margin-left:10px;height:330px;">
                <div class="inner-product-home">
                    <a href="/SanPham/ThongTinSanPham?sanpham=@item.TenSanPham&id=@item.SanPhamID">
                        <img width="171" height="214" class="lazy img-product" src="@item.HinhAnh" alt="" data-original="@item.HinhAnh" style="display: block; "></a> 
                </div> 
                <div class="infor-text-pro"> 
            <b style="color:#e47911;font-size: 12px;">@item.XuatXu.TenXuatXu</b><br>                   
                        @{
                            if(item.TenSanPham.Count() <=30)
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham</a>
                            }
                            else
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham.Substring(0,30)...</a>
                            }
                        }
		            <br>		          					          	
                    <strong>@item.Gia<span>.000đ</span></strong>
		        </div>
            </div>
        }
    }
</div>


<div class ="ui-corner-tbl-all" style="margin-left:5px;">
    <ul class ="top_tabs top_tt-pr">
        <li class ="headtt">@Html.ActionLink("Thuốc cho thú cưng","Thuoc","SanPham")</li>
        <li class="LASTtt">@Html.ActionLink("Xem thêm","ThuCung","SanPham")</li>
    </ul>
</div>
<div class="wrapper" style="margin-bottom:10px">
    @if(ViewBag.thuoc !=null)
    {
        foreach (var item in (List<SanPham>)ViewBag.thuoc)
        {
            <div class="products product_item" style="margin-left:10px;height:330px;">
                <div class="inner-product-home">
                    <a href="/SanPham/ThongTinSanPham?sanpham=@item.TenSanPham&id=@item.SanPhamID">
                        <img width="171" height="214" class="lazy img-product" src="@item.HinhAnh" alt="" data-original="@item.HinhAnh" style="display: block; "></a> 
                </div> 
                <div class="infor-text-pro"> 
            <b style="color:#e47911;font-size: 12px;">@item.XuatXu.TenXuatXu</b><br>                   
                        @{
                            if(item.TenSanPham.Count() <=30)
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham</a>
                            }
                            else
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham.Substring(0,30)...</a>
                            }
                        }
		            <br>		          					          	
                    <strong>@item.Gia<span>.000đ</span></strong>
		        </div>
            </div>
        }
    }
</div>


<div class ="ui-corner-tbl-all" style="margin-left:5px;">
    <ul class ="top_tabs top_tt-pr">
        <li class ="headtt">@Html.ActionLink("Đồ chơi cho thú cưng","DoChoi","SanPham")</li>
        <li class="LASTtt">@Html.ActionLink("Xem thêm","ThuCung","SanPham")</li>
    </ul>
</div>
<div class="wrapper" style="margin-bottom:10px">
    @if(ViewBag.dochoi !=null)
    {
        foreach (var item in (List<SanPham>)ViewBag.dochoi)
        {
            <div class="products product_item" style="margin-left:10px;height:330px;">
                <div class="inner-product-home">
                    <a href="/SanPham/ThongTinSanPham?sanpham=@item.TenSanPham&id=@item.SanPhamID">
                        <img width="171" height="214" class="lazy img-product" src="@item.HinhAnh" alt="" data-original="@item.HinhAnh" style="display: block; "></a> 
                </div> 
                <div class="infor-text-pro"> 
            <b style="color:#e47911;font-size: 12px;">@item.XuatXu.TenXuatXu</b><br>                   
                        @{
                            if(item.TenSanPham.Count() <=30)
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham</a>
                            }
                            else
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham.Substring(0,30)...</a>
                            }
                        }
		            <br>		          					          	
                    <strong>@item.Gia<span>.000đ</span></strong>
		        </div>
            </div>
        }
    }
</div>


<div class ="ui-corner-tbl-all" style="margin-left:5px;">
    <ul class ="top_tabs top_tt-pr">
        <li class ="headtt">@Html.ActionLink("Chuồng trại cho thú cưng","Chuong","SanPham")</li>
        <li class="LASTtt">@Html.ActionLink("Xem thêm","ThuCung","SanPham")</li>
    </ul>
</div>
<div class="wrapper" style="margin-bottom:10px">
    @if(ViewBag.chuong !=null)
    {
        foreach (var item in (List<SanPham>)ViewBag.chuong)
        {
            <div class="products product_item" style="margin-left:10px;height:330px;">
                <div class="inner-product-home">
                    <a href="/SanPham/ThongTinSanPham?sanpham=@item.TenSanPham&id=@item.SanPhamID">
                        <img width="171" height="214" class="lazy img-product" src="@item.HinhAnh" alt="" data-original="@item.HinhAnh" style="display: block; "></a> 
                </div> 
                <div class="infor-text-pro"> 
            <b style="color:#e47911;font-size: 12px;">@item.XuatXu.TenXuatXu</b><br>                   
                        @{
                            if(item.TenSanPham.Count() <=30)
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham</a>
                            }
                            else
                            {
                                <a title="@item.TenSanPham" style="height: 35px;display: inline-block;" href="/SanPham/ThongTinSanPham/@item.LoaiSanPham.SubLoaiSanPham?loaisanpham=@item.LoaiSanPham.TenLoaiSanPham&phanloai=@item.LoaiSanPham.LoaiSanPhamID&sanpham=@item.TenSanPham&id=@item.SanPhamID"> @item.TenSanPham.Substring(0,30)...</a>
                            }
                        }
		            <br>		          					          	
                    <strong>@item.Gia<span>.000đ</span></strong>
		        </div>
            </div>
        }
    }
</div>